#ifndef BANK_H
#define BANK_H

#include <iostream>
#include <pthread.h>

using namespace std;

class Bank {
	public:
		Bank ();
		~Bank ();

		void action (int, int, int, int, int);
		void set_accounts (int *, int *, int);

	private:
		int * accounts;
		int * amounts;
		int num_accounts;
		int fail_count;

		pthread_mutex_t * locks;
};

#endif
